package com.tomax.ut.c;

import com.tomax.javalib.result.CodeMsg;
import com.tomax.javalib.result.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class Index {
    /**
     * 日志
     */
    final Logger logger = LoggerFactory.getLogger(Index.class);

    @RequestMapping(value = "/", method = RequestMethod.GET,produces= MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public Result<Object> helloWorld(){
        return Result.error(CodeMsg.ERROR_USER_NOT_EXIST.fillArgs("ccc"));
    }
}
